﻿@model LayuiMvc.DataModel.Identity.UserMsgModel

<div class="layui-container fly-marginTop">
    <div class="fly-panel fly-panel-user">

        <!--Tab选项卡-->
        <div class="layui-tab layui-tab-brief" lay-filter="user">
            <ul class="layui-tab-title">
                <li class="layui-this">
                    我的资料
                </li>
                <li>
                    <a href="@Url.Action("UpdateHeadImg")">头像</a>
                </li>
                <li>
                    <a href="@Url.Action("UpdatePassword")">密码</a>
                </li>
            </ul>
            <div class="layui-tab-content">
                @using (Ajax.BeginForm("UserSet", "Account", new AjaxOptions()
                {
                    OnBegin = "onBegin",
                    OnFailure = "onFailure",
                    OnSuccess = "onSuccess",
                    OnComplete = "onUserSetComplete"
                }))
                {
                    <div class="layui-form layui-form-pane layui-show">
                        <div class="layui-form-item">
                            <label class="layui-form-label">邮箱</label>
                            <div class="layui-input-inline">
                                <input name="Email" value="@Model.Email" class="layui-input" lay-verify="email" readonly />
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">手机号码</label>
                            <div class="layui-input-inline">
                                <input name="PhoneNumber" value="@Model.PhoneNumber" class="layui-input" lay-verify="phone" readonly />
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">昵称</label>
                            <div class="layui-input-inline">
                                <input name="NickName" value="@Model.NickName" class="layui-input" id="txt_NickName" lay-verify="required" />
                            </div>
                            <div class="layui-inline">
                                <input type="radio" name="Sex" value="10" checked="@(Model.Sex==10)" title="男" />
                                <input type="radio" name="Sex" value="20" checked="@(Model.Sex==20)" title="女" />
                            </div>
                        </div>
                        <div class="layui-form-item layui-form-text">
                            <label class="layui-form-label" for="txt_Introduce">签名</label>
                            <div class="layui-input-block">
                                <textarea placeholder="废生" id="txt_Introduce" name="Introduce" class="layui-textarea" style="height:80px;">@Model.Introduce</textarea>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <button type="submit" class="layui-btn" lay-filter="userupdate" lay-submit>确定修改</button>
                        </div>
                    </div>
                }
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    layui.cache.module = {
        moduleName: 'account',
        pageName:'userSet'
    }
</script>

